package com.fastdfs.pojo;

import javax.persistence.*;
import java.io.Serializable;

@Table(name="album")
public class Album implements Serializable {

    @Id
    @Column(name = "id")
    private String id;//编号

    @Column(name = "title")
    private String title;//相册名称

    @Column(name = "image")
    private String image;//相册封面

    @Column(name = "image_describe")
    private  String imageDescribe;  //相册描述

    @Column(name = "image_data")
    private String imageData; //相册创建时间


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImageDescribe() {
        return imageDescribe;
    }

    public void setImageDescribe(String imageDescribe) {
        this.imageDescribe = imageDescribe;
    }

    public String getImageData() {
        return imageData;
    }

    public void setImageData(String imageData) {
        this.imageData = imageData;
    }


    @Override
    public String toString() {
        return "Album{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", image='" + image + '\'' +
                ", imageDescribe='" + imageDescribe + '\'' +
                ", imageData=" + imageData +
                '}';
    }
}
